<!DOCTYPE html>
<html>
<head>
	<title></title>
	<script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js">
	</script>
</head>
<body>

<ul id='order_list' data-source='http://localhost:8080/loop/' class='yang_loop' empty="#ee">
	<li class='list_item'>
		<span>订单号</span><i>{tm}</i>
		<span>金额</span><i>{money}</i>`
	</li>
</ul>
下面演示没有订单的情况（没有订单时，显示另一个div)
<ul id='order_list2' data-source='http://localhost:8080/loop/' class='yang_loop' empty="#ee">
	<li class='list_item'>
		<span>订单号2</span><i>{tm}</i>
		<span>金额2</span><i>{money}</i>`
	</li>
</ul>
<div id='ee' style="display:none;">没有任何订单</div>
<script type="text/javascript" src="../js/loop.js"></script>
<script type="text/javascript">

$(function(){
	yang_loop();
})

</script>

</body>
</html>